function unique1(array) {
  const S = new Set()
  return array.filter(item => (!S.has(item.skuId) && S.add(item.skuId)))
}

function unique2(array) {
  const arr = []
  return array.filter(item => (!arr.includes(item.skuId) && arr.push(item.skuId)))
}
